import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Announcement {
    @PrimaryGeneratedColumn({ type: 'int', comment: '公告id' })
    id: number

    @Column({ length: 255, type: String, nullable: false, comment: "公告标题" })
    title: string;

    @Column({ length: 255, type: String, nullable: false, comment: "公告内容" })
    content: string;

    @Column({ type: 'timestamp', nullable: false, comment: "公告创建时间" })
    createTime: Date;



}
